package com.ohuang.wallpapermanager.storage.storage

import com.google.gson.Gson


object GsonUtil {

    private var gson= Gson()


    fun toJson(o:Any):String{
        return gson.toJson(o)
    }

    fun fromJson(json:String,type: java.lang.reflect.Type):Any{
        return gson.fromJson(json,type)
    }

}